curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
Installation of Awestruct
Creation of Project Directory or Clone/Fork Git Repository
Reference: http://awestruct.org/getting_started/
curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
sudo yum install libxml2-devel libxslt libxslt-devel
Install those libraries if you don't have them already installed. This should avoid some errors when using gem, where you get messages telling you that " You need to install the development tools first. "
sudo yum install gcc gcc-c++
Install Awestruct, Asciidoctor, rake and bundler
gem install awestruct asciidoctor rake bundler
This is important. Check if the installation has been successful.
$ awestruct --version WARNING: Missing required dependency to activate optional built-in extension coffeescripttransform.rb cannot load such file -- coffee-script WARNING: Missing required dependency to activate optional built-in extension minify.rb cannot load such file -- htmlcompressor Awestruct: 0.5.3 http://awestruct.org/
Looks like awestruct has been installed.
You just have to do mkdir and cd into a new directory.
mkdir awestruct cd awestruct/
Typically you would use awestruct to create the template for you.
In the case of PicketLink, we have a git workspace for the website.
Assuming you have forked the website workspace, just go to the forked workspace directory.
In the directory where your project files are, you can run awestruct in development mode to create the files.
awestruct -d
Try to update rake
rake update
Now run rake as follows:
rake
Locally, you can test your website at http://localhost:4242
rake clean
Development Mode
awestruct -d
This will start the web server and you can test at port 4242
Staging Profile
awestruct -Pstaging
This does not start the web server. The generated files under _site are all with staging profile.
When you are ready to publish, I follow the steps:
rake clean awestruct -Pproduction
This will minimize css,js etc and make the files under _site directory ready for the website.
Now I just use scp to upload the files in the _site directory into the production box.
The command I use from the _site directory is the following:
scp -i MY_DOT_RSA_FILE -r . picketlink@FILE_SERVER_NAME:/www_htdocs/picketlink/
If you are using the default xxx.rsa file, then you do not need the -i option in scp.
Remember to get the FILE_SERVER_NAME from one of the PL developers.
HAML: http://haml.info/docs/yardoc/file.REFERENCE.html
JBoss.org Template And Other Important Information: http://example.jboss.org/
Tarball of files of old website: https://drive.google.com/file/d/0B1686J5nuKI6dllmSVN6YkFhaWM/edit?usp=sharing